package com.pachong.service;

import com.pachong.dao.MyLikeNewsMapper;
import com.pachong.pojo.MyLikeNews;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2018/5/12 0012.
 */
@Service
public class MyLikeNewsServiceImpl implements MyLikeNewsMapper {
    @Resource
    private MyLikeNewsMapper myLikeNewsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return myLikeNewsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MyLikeNews record) {
        return myLikeNewsMapper.insert(record);
    }

    @Override
    public int insertSelective(MyLikeNews record) {
        return myLikeNewsMapper.insertSelective(record);
    }

    @Override
    public MyLikeNews selectByPrimaryKey(Integer id) {
        return myLikeNewsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MyLikeNews record) {
        return  myLikeNewsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MyLikeNews record) {
        return  myLikeNewsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MyLikeNews> selectByList(MyLikeNews record) {
        return myLikeNewsMapper.selectByList(record);
    }
    @Override
    public MyLikeNews selectByUser(MyLikeNews record) {
        return myLikeNewsMapper.selectByUser(record);
    }
}
